{include file="Public/header" /}
<!--/header-->
<div class="single">
    <div class="container">
        <div class="col-md-8 single-main">
            <div class="single-grid">
                <h3 align="center">{$content.title}</h3>
                <hr style="width:1;border:1">
                {if condition="$content.litpic"}
                <img src="{$content.litpic}" alt="{$content.title}"/>
                {/if}
                {if condition="$content.editor == 2"}
                <div id="markview" ><textarea style="display: none">{$content.content}</textarea></div>
                {else /}
                {$content.content}
                {/if}
            </div>
            <ul class="comment-list">
                <li>
                    <h5 class="post-author_head">作者： <a href="#" title="Posts by admin" rel="author">admin</a></h5>
                    <img src="__PUBLIC__/images/avatar.png" class="img-responsive" alt="">
                    <div class="desc">
                        <p>来源: <a title="Posts by admin" rel="author">{if condition="$content.copyfrom"}{$content.copyfrom}{else/}原创{/if}</a></p>
                    </div>
                    <div class="clearfix"></div>
                </li>
            </ul>
            {if condition="$content.editor == 2"}
            <link rel="stylesheet" href="__COMMON__/plugin/editor.md/css/editormd.preview.css" />
            <script src="__COMMON__/plugin/editor.md/lib/marked.min.js"></script>
            <script src="__COMMON__/plugin/editor.md/lib/prettify.min.js"></script>

            <script src="__COMMON__/plugin/editor.md/lib/raphael.min.js"></script>
            <script src="__COMMON__/plugin/editor.md/lib/underscore.min.js"></script>
            <script src="__COMMON__/plugin/editor.md/lib/sequence-diagram.min.js"></script>
            <script src="__COMMON__/plugin/editor.md/lib/flowchart.min.js"></script>
            <script src="__COMMON__/plugin/editor.md/lib/jquery.flowchart.min.js"></script>

            <script src="__COMMON__/plugin/editor.md/editormd.js"></script>
            <script type="text/javascript">
                testEditormdView2 = editormd.markdownToHTML("markview", {
                    emoji           : true,
                    taskList        : true,
                    tex             : true,  // 默认不解析
                    flowChart       : true,  // 默认不解析
                    sequenceDiagram : true,  // 默认不解析
                });
            </script>
            {/if}
            <div class="content-form">
            </div>
        </div>
        {include file="Public/right" /}
        <div class="clearfix"></div>
    </div>
</div>

<!--footer-->
{include file="Public/footer" /}